package com.kedsoft.andaily.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.kedsoft.andaily.common.CommonList;
import com.kedsoft.andaily.entity.CunsumerPos;
import com.kedsoft.andaily.service.CunsumerPosService;
import com.kedsoft.andaily.vo.CunsumerPosVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LGP
 * @since 2019-04-10
 */
@Controller
@RequestMapping("/cunsumer/pos")
public class CunsumerStateController {
    @Autowired
    CunsumerPosService cunsumerPosService;

    @RequestMapping(value = "all", method = RequestMethod.GET)
    @ResponseBody
    public CommonList<CunsumerPosVo> all(){
        List<CunsumerPosVo> list = cunsumerPosService.getAllPosVo();
        return CommonList.success(list);
    }
}

